package com.qk.common.enums;

public enum ParamEnum implements Code {
    PARAM_ERROR(1001, "参数错误"),
    USER_NOT_FOUND(1002, "用户不存在"),
    PASSWORD_ERROR(1003, "密码错误"),
    USER_DISABLED(1004, "用户已停用"),
    NEXT_TIME_ERROR(1005, "下次联系时间不能早于当前时间");



    private final Integer code;
    private final String message;

    ParamEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
